<volist name="tree" id="list">
    <div class="cate-container">
        <div class="cate-item">
            <div class="fold">
                <if condition="$list['_']">
                    <button class="btn-link" style="outline: none;"><i class="glyphicon glyphicon-minus-sign"></i></button>
                </if>
            </div>
            <div class="order"><input type="text" name="sort" class="text input-mini api_ajax" value="{$list.sort}" data-id="{$list.id}" data-api="{:U('Category/api')}" data-method="update"></div>
            <div class="order">{$list['allow_publish']?'<span class="yes">是</span>':'<span class="no">否</span>'}</div>
            <div class="name">
                <!--<span class="tab-sign"></span>-->
                {:get_tab_sign($list['id'])}
                <input type="hidden" name="id" value="{$list.id}">
                <input type="text" name="title" class="text api_ajax" value="{$list.title}" data-id="{$list.id}" data-api="{:U('Category/api')}" data-method="update">
                <a class="add-sub-cate" title="添加子分类" href="{:U('edit?pid='.$list['id'])}">
                    <i class="glyphicon glyphicon-plus"></i>
                </a>
                <span class="help-inline msg"></span>
            </div>
            <div class="name" >{$list['status']==0?'<span class="yes">启用</span>':'<span class="no">禁用</span>'}</div>
            <div class="name" >
                <if condition="0 eq $list['is_parent'] and 1 eq $list['is_child']">
                    <span class="child">子级</span>
                    <elseif condition="1 eq $list['is_parent'] and 0 eq $list['is_child']"/>
                    <span class="parent">父级</span>
                    <else/>
                    默认
                </if>
            </div>
            <div class="">
                <a title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}">编辑</a>
                <!--<a title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get">{$list.status|show_status_op}</a>-->
                <a title="删除" href="{:U('delete?id='.$list['id'])}" class="confirm ajax-get">删除</a>
                <!--<a title="移动" href="{:U('operate?type=move&from='.$list['id'])}">移动</a>-->
                <!--<a title="合并" href="{:U('operate?type=merge&from='.$list['id'])}">合并</a>-->
            </div>
        </div>
        <notempty name="list['_']">
            {:R('Category/tree', array($list['_']))}
        </notempty>
    </div>
</volist>

